package org.minos.edit.view.components
{
	import org.aswing.BorderLayout;
	import org.aswing.JMenu;
	import org.aswing.JMenuBar;
	import org.aswing.JMenuItem;
	import org.aswing.JPanel;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class Menu extends JPanel
	{
		private var bar : JMenuBar
		private var editMenu : JMenu;
		;
		private var addTaskMenu : JMenuItem;
		private var helpMenu : JMenu;
		private var aboutMenu : JMenuItem;
		
		public function Menu()
		{
			super();
			setLayout( new BorderLayout() );
			
			bar = new JMenuBar();
			editMenu = new JMenu( "编辑(&E)" );
			addTaskMenu = new JMenuItem( "添加日程" );
			editMenu.append( addTaskMenu );
			
			helpMenu = new JMenu( "帮助(&H)" );
			aboutMenu = new JMenuItem( "关于(&A)" );
			helpMenu.append( aboutMenu );
			
			append( bar , BorderLayout.CENTER );
			
			bar.append( editMenu );
			bar.append( helpMenu );
			
			setOpaque( true );
		}
	
	}

}